home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / renaisnc / rcnstrct.lha / Reconstruct / Math.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-04  |  527 b   |  19 lines

  1. /*
  2. **   Our "Math.h" correctly deals with redundent includes and makes
  3. **   sure M_PI is defined to make srt portable between bezier (Ultrix)
  4. **   and si (4.2bsd on RT).
  5. */
  6.  
  7. #ifndef MATHINCLUDED
  8. #   define MATHINCLUDED
  9. #   include <math.h>
  10. #   ifndef M_PI
  11. #    define M_PI    3.14159265358979323846
  12. #    define M_PI_2    1.57079632679489661923
  13. #    define M_PI_4    0.78539816339744830962
  14. #    define M_1_PI    0.31830988618379067154
  15. #    define M_2_PI    0.63661977236758134308
  16. #    define M_2_SQRTPI    1.12837916709551257390
  17. #   endif M_PI
  18. #endif MATHINCLUDED
  19.